<!doctype html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>高校运动会后台管理系统</title>
<!--        <meta name="renderer" content="webkit|ie-comp|ie-stand">-->
<!--        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
<!--        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />-->
<!--        <meta http-equiv="Cache-Control" content="no-siteapp" />-->
        <link rel="stylesheet" th:href="@{/X-admin/css/font.css}">
        <link rel="stylesheet" th:href="@{/X-admin/css/xadmin.css}">
        <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
        <script th:src="@{/X-admin/lib/layui/layui.js}" charset="utf-8"></script>
        <script type="text/javascript" th:src="@{/X-admin/js/xadmin.js}"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
        <script>
            // 是否开启刷新记忆tab功能
            // var is_remember = false;
        </script>
    </head>
    <body class="index">
        <!-- 顶部开始 -->
        <div class="container">
            <div class="logo">
                <a href="#">运动会管理</a></div>
            <div class="left_open">
                <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
            </div>
            <ul class="layui-nav right" lay-filter="">
                <li class="layui-nav-item">
                   <!--这里显示用户名-->
                    <div id="student_id" hidden>[[${session.student.getId()}]]</div>
                    <a href="javascript:;">[[${session.student.getName()}]]</a>
                    <dl class="layui-nav-child">
                        <!-- 二级菜单 -->
                        <dd>
                            <a id="personal" >个人信息</a></dd>
                        <dd>
                            <a id="exit" th:href="@{/student/logout}">退出</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item to-index">
                    <a href="#">用户身份：学生</a></li>
            </ul>
        </div>
        <!-- 顶部结束 -->
        <!-- 中部开始 -->
        <!-- 左侧菜单开始 -->
        <div class="left-nav">
            <div id="side-nav">
                <ul id="nav">
                    <li>
                        <a href="javascript:;" onclick="xadmin.add_tab('首页','/admin/welcome')">
                            <i class="iconfont left-nav-li" lay-tips="首页">&#xe6b4;</i>
                            <cite>首页</cite>
                            </a>

                    </li>

                    
                    <li>
                        <a href="javascript:;">
                            <i class="iconfont left-nav-li" lay-tips="项目管理">&#xe723;</i>
                            <cite>项目管理</cite>
                            <i class="iconfont nav_right">&#xe697;</i></a>
                        <ul class="sub-menu">
                            <li>
                                <a onclick="xadmin.add_tab('报名项目','/student/getSports/1')">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>报名项目</cite></a>
                            </li>
                            <li>
                                <a onclick="xadmin.add_tab('查看已报名项目','/student/getEntryFromByStuId/1')">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>查看已报名项目</cite></a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="javascript:;">
                            <i class="iconfont left-nav-li" lay-tips="成绩查询">&#xe6ab;</i>
                            <cite>成绩查询</cite>
                            <i class="iconfont nav_right">&#xe697;</i></a>
                        <ul class="sub-menu">
                            <li>
                                <a onclick="xadmin.add_tab('单个项目查询','/student/toGetScore')">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>单个项目查询</cite></a>
                            </li>
                        </ul>
                        <ul class="sub-menu">
                            <li>
                                <a onclick="xadmin.add_tab('总成绩查询','/admin/toGetScoreAll/1')">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>总成绩查询</cite></a>
                            </li>
                        </ul>
                        <ul class="sub-menu">
                            <li>
                                <a onclick="xadmin.add_tab('个人总积分查询','/student/toPersonalScore/1')">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>个人总积分查询</cite></a>
                            </li>
                        </ul>
                    <li>
                        <a href="javascript:;" onclick="xadmin.add_tab('查看开幕式','/student/toCeremonyOpen')">
                            <i class="iconfont left-nav-li" lay-tips="查看开幕式">&#xe74a;</i>
                            <cite>查看开幕式</cite>
                        </a>

                    </li>
                    <li>
                        <a href="javascript:;" onclick="xadmin.add_tab('查看闭幕式','/student/toCeremonyClose')">
                            <i class="iconfont left-nav-li" lay-tips="查看闭幕式">&#xe74a;</i>
                            <cite>查看闭幕式</cite>
                        </a>

                    </li>
                    </li>
                    <li>
                        <a href="javascript:;">
                            <i class="iconfont left-nav-li" lay-tips="个人资料">&#xe726;</i>
                            <cite>个人资料</cite>
                            <i class="iconfont nav_right">&#xe697;</i></a>
                        <ul class="sub-menu">
                            <li>
                                <a id="getStudent" >
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>查看个人资料</cite></a>
                            </li>
                            <li>
                                <a id="updStudentPass">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>修改密码</cite></a>
                            </li>
                            
                        </ul>
                    </li>

                     
                </ul>
            </div>
        </div>
        <!-- <div class="x-slide_left"></div> -->
        <!-- 左侧菜单结束 -->
        <!-- 右侧主体开始 -->
        <div class="page-content">
            <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
                <ul class="layui-tab-title">
                    <li class="home">
                        <i class="layui-icon">&#xe68e;</i>首页</li></ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe th:src='@{/admin/welcome}' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                    </div>
                </div>
                <div id="tab_show"></div>
            </div>
        </div>
        <div class="page-content-bg"></div>
        <style id="theme_style"></style>
        <!-- 右侧主体结束 -->
        <!-- 中部结束 -->
        <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
        <script>

        $("#getStudent").click(function () {
            //layer.alert("点击事件");
            var id= $("#student_id").text();
            //layer.alert(adminId);
            $(this).attr("onclick",xadmin.add_tab('查看个人资料','/student/toGetStudent/'+id));

        })

        $("#updStudentPass").click(function () {
            //layer.alert("点击事件");
            var id= $("#student_id").text();
            $(this).attr("onclick",xadmin.add_tab('修改密码','/student/toUpdStudentPass/'+id));
        })

        $("#personal").click(function () {
            var id= $("#student_id").text();
            //layer.alert(adminId);
            $(this).attr("onclick",xadmin.open('查看个人资料','/student/toGetStudent/'+id));
        })

            </script>
    </body>

</html>